package com.kingzoder.food.model.entity;

import com.kingzoder.food.common.base.LogicDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author ZoderKing
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category extends LogicDO {
    /**
     * 分类ID，自增主键
     */
    private Long id;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 父分类ID，0表示顶级分类
     */
    private Long parentId;
    /**
     * 排序序号，用于展示排序
     */
    private Integer sortOrder;
}

